package com.cdy.server;

import com.cdy.server.netty.NettyServer;
import com.cdy.store.manager.FileSystemDisk;
import com.cdy.store.repository.FileRepository;
import com.cdy.store.repository.FileRepositoryInMemory;

/**
 * 文件服务器
 *
 * Created by 陈东一
 * 2019/10/19 0019 19:42
 */
public class FileServer {
    
    public static void main(String[] args) {
        System.setProperty("io.netty.buffer.checkBounds", "false");
        NettyServer nettyServer = new NettyServer(new FileRepositoryInMemory(),new FileSystemDisk());
        nettyServer.init("127.0.0.1", 12345);
        
    }
}
